<extend name="Base:main" />
<block name="title"><title>用户管理</title></block>
<block name="content">
<div class="row">
    <div class="box col-md-12">
    <div class="box-inner">
    <div class="box-header well" data-original-title="">
        <h2><i class="glyphicon glyphicon-user"></i>用户管理</h2>

        <div class="box-icon">
            <a href="#" class="btn btn-setting btn-round btn-default"><i class="glyphicon glyphicon-cog"></i></a>
            <a href="#" class="btn btn-minimize btn-round btn-default"><i
                    class="glyphicon glyphicon-chevron-up"></i></a>
            <a href="#" class="btn btn-close btn-round btn-default"><i class="glyphicon glyphicon-remove"></i></a>
        </div>
    </div>
    <div class="box-content">
    <div class="alert alert-info">对注册用户进行查看以及管理</div>
    <table class="table table-striped table-bordered bootstrap-datatable datatable responsive">
    <thead>
    <tr>
        <th>昵称</th>
        <th>头像</th>
        <th>生日</th>
        <th>性别</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <foreach name="list" item="account" >
    <tr>
        <td>{$account.nickname}</td>
        <td class="center"><a title="{$account.nickname}" href="{$account.headimgurl}" class="cboxElement"><img class="dashboard-avatar"  src="{$account.headimgurl}" alt="{$account.nickname}" style="display: block;"></a></td>
<!--         <td class="center"><img class="dashboard-avatar" src="{$account.headimgurl}"></td> -->
        <td class="center">{$account.birthday}</td>
        <td class="center">
        	<switch name="account.sex" >
			<case value="1"><i class="glyphicon glyphicon-user blue"></i></case>
			<case value="2"><i class="glyphicon glyphicon-user red"></i></case>
			</switch>
        </td>
        <td class="center">
        	<switch name="account.status" >
			<case value="0"><span class="label-warning label label-default">未完善信息</span></case>
			<case value="1"><span class="label-success label label-default">正常</span></case>
			</switch>
        </td>
        <td class="center">
            <!-- <a class="btn btn-success" href="#">
                <i class="glyphicon glyphicon-zoom-in icon-white"></i>
                View
            </a> -->
            <a data-target="#myModal" data-toggle="modal" href="__CONTROLLER__/update" class="btn btn-info btn-setting">
                <i class="glyphicon glyphicon-edit icon-white"></i>
               		 修改
            </a>
            <a data-target="#myModal" data-toggle="modal" class="btn btn-danger btn-delete" href="__CONTROLLER__/delete/id/{$account.id}">
                <i class="glyphicon glyphicon-trash icon-white"></i>
                	删除
            </a>
        </td>
    </tr>
    </foreach>
    </tbody>
    </table>
    </div>
    </div>
    </div>
    <!--/span-->

    </div><!--/row-->
</block>